/*
    二进制相关编码和解码工具类
*/

const TXDJobs = function () {

}

TXDJobs.prototype._encoder = new TextEncoder("gb2312", {NONSTANDARD_allowLegacyEncoding: true});
TXDJobs.prototype._decoder = new TextDecoder("utf-8", {NONSTANDARD_allowLegacyEncoding: true});


// TXDJobs.prototype.encoder = function (content) {
//     return this._encoder.encode(content);
// }

TXDJobs.prototype.encoder = function (content) {
    for (let i = 0; i < content; i++) {

    }
}

TXDJobs.prototype.decoder = function (buffer) {
    return this._decoder.decode(buffer);
}